<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{$SETTING[siteurl]}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/jquery.cookie.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body> 

 
{template 'header.html'}


<div class="container">

    
    <div class="page-header">
    <h1>{$name}同城 <small></small></h1>
  </div>
  
  
  
  	 <div class="alert alert-success">
     	<div class="row">
        	<div class="span2">
            	<img src="{php echo $image ? $image : 'misc/nopic.gif'}"/>
            </div>
            <div class="span9">
            	<br/>
            	<p>小站 57 个 | 小组 26 个 | 居民 2087 人 </p>
                <p>{php echo $intro ? $intro : '暂无描述'}</p>
            </div>
       </div>
   </div>
    
    
    	   
    	<div class="main">
    		
            <div class="mod">
            	<div class="head">该地区的好友</div>
                <ul class="body users">
                    {php $sql = "SELECT * FROM `".DB_PRE."member` WHERE modelid=10 AND disabled=0 ORDER BY userid DESC"}
                   {get sql="$sql" rows="18" page="$page"}
                    <li {if $n%9==1} class="clear" {/if}>
                     <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),40,40)}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
                     <br/><a href="{url("?module=space&userid=$r[userid]")}">{php echo $r[nickname] ? $r[nickname] : $r[username]}</a>
                     <!--<br/><a href="./index.php?module=space&file=fans&action=add&userid={$r[userid]}">(关注TA)</a>-->
                    </li>
                  {/get}
               </ul>
               
            </div>
            
       
            <div class="mod">
            <div class="head">该地区的企业</div>
            <ul class="body users">
                  {get sql="SELECT userid,companyname,sitedomain,logo FROM `table_member_company` WHERE status = 1 ORDER BY userid DESC" rows="18"}
                    {if $r[companyname]}
                    <li {if $n%9==1} class="clear" {/if}>
                    <a href="{url("?module=yellowpage&userid=$r[userid]")}" title="{$r[companyname]}">
                    <img src="{php echo $r[logo] ? thumb($r[logo],40,40) : thumb('misc/nopic.gif',40,40)}" target="_blank" width="40" height="40"/></a>
                    <br/>
                    <a href="{url("?module=yellowpage&userid=$r[userid]")}" title="{$r[companyname]}">{str_cut($r[companyname],26,'..')}</a><br/>
                    {str_cut($r[introduce],45,'..')}
                    </li>
                    {/if}
                  {/get}
            </ul>
    </div>
    
    
            
        </div>
        <div class="aside">
            
            <div class="mod">
            	<div class="head">返回</div>
                <div class="body">
                	&gt;<a href="{url("?module=area")}">返回所有地区</a>
                </div>
            </div>
            
            <div class="mod">
            	<div class="head">该地区的活动</div>
                <div class="body">
                	
                </div>
            </div>
            
            <div class="mod">
            	<div class="head">该地区的小组</div>
                <div class="body">
                	
                </div>
            </div>
            
        </div>

</div>


 
{template 'footer.html'}